/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.service.glcydgz;

import com.plian.system.dto.glcydgz.GlcBaseBusinessProgressDTO;
import com.plian.system.dto.pf.BaseBusinessProgressDTO;
import com.plian.system.entity.glcydgz.GlcBaseBusinessProgress;
import com.plian.system.entity.pf.BaseBusinessProgress;
import com.plian.system.model.R;
import com.plian.system.mybatis.base.BaseService;
import com.plian.system.vo.glcydgz.GlcBaseBusinessProgressVO;
import com.plian.system.vo.pf.BaseBusinessProgressVO;

/**
 * 管理层月度跟踪
 *
 * @author zsk
 * @since 2025-02-06
 */
public interface IGlcBaseBusinessProgressService extends BaseService<BaseBusinessProgress> {

    /**
     * 每月只能填写一次
     * @param baseBusinessProgress
     * @return
     */
    String checkYear(BaseBusinessProgress baseBusinessProgress);

    /**
     * 保存 包含子表
     * @param baseBusinessProgress
     * @return
     */
    boolean submit(BaseBusinessProgress baseBusinessProgress);

    /**
     * 获取detail obj对象
     * @param baseBusinessProgressVO
     * @return
     */
    R<BaseBusinessProgressVO> getDetailObj(BaseBusinessProgressVO baseBusinessProgressVO);


    /**
     * @Author: Take-off
     * @Description: //TODO 根据年度和填报时间获取基础表
     * @Date: 10:56 AM 2022/12/16
     * @Param: [dto]
     * @return: com.plian.system.vo.pf.BaseBusinessProgressVO
     **/
    BaseBusinessProgressVO getDetailByDto(BaseBusinessProgressDTO dto);

    /**
     * @Author: Take-off
     * @Description: //TODO 根据年份获取最新的任务绩效/重大工程/主责主业
     * @Date: 8:58 PM 2022/12/19
     * @Param: [fillingYear, fillingUnitId]
     * @return: java.util.List<com.plian.system.vo.pf.TaskProgressVO>
     **/
    BaseBusinessProgressVO getBasicTaskProgress(String fillingYear, String fillingUnitId);

    /**
     * @Description:  接收数字宁波数字
     * @Author: Take-off
     * @Date: 4:23 PM 2023/5/25
     * @Param: [data]
     * @return: java.lang.String
     **/
    String saveBaseBusiness(String data);
}
